package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName  string `gorm:"type:varchar(50)"`
	RoleTitle string `gorm:"type:varchar(50)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Order struct {
	gorm.Model
	OrderName  string `gorm:"type:varchar(50)"`
	OrderTitle string `gorm:"type:varchar(50)"`
	Rid        int    `gorm:"type:int"`
}
type RoleOrderList struct {
	OrderId    int
	OrderName  string
	OrderTitle string
	RoleName   string
	RoleTitle  string
}

type Num struct {
	gorm.Model
	NumName  string `gorm:"type:varchar(50)"`
	NumPhone string `gorm:"type:varchar(50)"`
}
type Ding struct {
	gorm.Model
	DingName    string `gorm:"type:varchar(50)"`
	DingContent string `gorm:"type:varchar(50)"`
	Nid         int    `gorm:"type:int"`
}
type NumDingList struct {
	Nid         int
	NumName     string
	NumPhone    string
	DingName    string
	DingContent string
}
